package com.heima.article.job;

import com.heima.article.service.ApArticleService;
import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class HotArtilceComputJob {

    @Autowired
    private ApArticleService apArticleService;

    @XxlJob("hotArticleJob")
    public void hotArticleJob(){
            apArticleService.computeArticle();
    }
}
